//
//  DCAuthBankTipsCell.m
//  Demo
//
//  Created by zhaolin on 2023/1/13.
//

#import "DCAuthTipsCell.h"


@interface DCAuthTipsCell ()
@property (nonatomic, strong) UILabel *tips;
@end
@implementation DCAuthTipsCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self configureUI];
    }
    return self;
}
- (void)setTipString:(NSString *)tips {
    _tips.text = tips;
}
- (void)configureUI {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backgroundColor = [UIColor colorWithString:@"#FFFFFF"];
    UILabel *tipLabel = [UILabel new];
    tipLabel.text = @"Tips:";
    tipLabel.textColor = [UIColor colorWithString:@"#1C221B"];
    tipLabel.font = DCFont_PF_Regular(12);
    [self.contentView addSubview:tipLabel];
    [tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(30);
        make.top.mas_equalTo(20);
    }];
    
    UILabel *tips = [UILabel new];
    _tips = tips;
    tips.numberOfLines = 0;
    tips.text = @"1.Add a bank account to receive your loan\n2.Please make sure to use your own bank account\n3.Your account details are safely protected,please feel free to fill in\n4.Bank account switch is not allowed when applying for loans";
    tips.font = DCFont_PF_Regular(12);
    tips.textColor = [UIColor colorWithString:@"#CED7CD"];
    [self.contentView addSubview:tips];
    [tips mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(tipLabel.mas_left);
        make.top.mas_equalTo(tipLabel.mas_bottom).mas_offset(2);
        make.right.mas_equalTo(-30);
        make.bottom.mas_equalTo(-10);
    }];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
